<extend name="Public/base"/>

<block name="body">
  <div class="main-title">
    <h2>{$data['id']?'编辑':'新增'}快递公司</h2>
  </div>
  <form action="{:U('update')}" method="post" class="form-horizontal">
    <div class="form-item">
      <label class="item-label">快递公司名称<span class="check-tips">（店铺商户发货选择快递公司和填写物流单号，便于用户查询跟踪订单）</span></label>
      <div class="controls">
        <input type="text" class="text input-large" maxlength="20" name="name" value="{$data.name|default=''}">
      </div>
    </div>
    <div class="form-item">
      <label class="item-label">官网网址<span class="check-tips">（带http://）</span></label>
      <div class="controls">
        <input type="text" class="text input-large" maxlength="32" name="url" value="{$data.url|default=''}">
      </div>
    </div>
    <div class="form-item">
      <label class="item-label">排序<span class="check-tips">（排序数值越大越靠前）</span></label>
      <div class="controls">
        <input type="text" class="text input-small" name="sort" value="{$data.sort|default='0'}">
      </div>
    </div>
        <div class="form-item">
            <label class="item-label">是否显示<span class="check-tips">（在店铺发货设置中，供商户选择发货）</span></label>
            <div class="controls">
        <label class="radio"><input type="radio" value="1" name="status">是</label>
        <label class="radio"><input type="radio" value="0" name="status">否</label>
            </div>
        </div>
    <div class="form-item">
      <input type="hidden" name="id" value="{$data.id|default=''}">
      <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
      <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
    </div>
  </form>
</block>

<block name="script">
  <script type="text/javascript" charset="utf-8">
    //设置单选，复选，下拉菜单的值
    Core.setValue('status','{$data.status|default=1}');

    //导航高亮
    highlight_subnav("{:U('index')}");
  </script>
</block>